local skynet = require "skynet"
local sprotoloader = require "sprotoloader"
local cluster = require "skynet.cluster"
local socket = require "skynet.socket"



skynet.start(function ()
    cluster.open("cluster_test")
    skynet.error("cluster_test start")

    -- if not skynet.getenv "daemon" then
    --     local console = skynet.newservice("console")
    -- end

    local test = skynet.uniqueservice("gate_example")
    -- skynet.name(".gate_example", test)

    skynet.call(test,"lua","open", {
        port = 8889,
        maxclient =1024,
        nodelay = true,
    })

end)
